package com.yugao.fintech.libra.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.yugao.fintech.libra.common.model.BasePO;
import com.yugao.fintech.libra.common.tenant.core.DataIsolation;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 部门和用户的关系表

 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName("sys_user_dept")
@DataIsolation(filterTenant = true, associatedUser = true, tableName = "sys_user_dept")
public class SysUserDeptRel extends BasePO {
    public static LambdaQueryWrapper<SysUserDeptRel> lqw() {
        return Wrappers.lambdaQuery();
    }

    /** 用户id */
    private Long userId;
    /** 部门id */
    private Long deptId;
}
